// 商品类型
export interface Product {
  id: number
  title: string
  price: number
  description: string
  image: string
  category?: string
  stock?: number
}

// 购物车商品类型
export interface CartItem extends Product {
  quantity: number
}

// API 响应类型
export interface ApiResponse<T> {
  code: number
  data: T
  message: string
}

// 分页响应类型
export interface PaginatedResponse<T> {
  items: T[]
  total: number
  page: number
  pageSize: number
} 